﻿@using NewRen.Models;
@using NewRen.Models.ViewModel;
@{ 
    Layout = "~/Views/Shared/_Layout_Common.cshtml";
    ViewBag.Layout_Title = "论坛 -" + ViewBag.Title;
}
    <link rel="stylesheet" type="text/css" href="~/Styles/newren.bbs.css">
    <link href="~/Styles/jquery.datetimepicker.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Scripts/jquery.imgscroll.js"></script>
    <script src="~/Scripts/jquery.datetimepicker.js"></script>
    <script src="~/Scripts/newren.js"></script>
    <script src="~/Scripts/moment.js"></script>
    <input type="hidden" value="@ViewBag.ReturnUrl" id="returnUrl">
    <div class="nav">
        <div class="bbs-container">
            <div class="nav-left">
                <a href="/Home/Index" class="nav">首页</a>
                <a href="/NewRen/Index" class="nav" id="nav_newren">找牛人</a>
                <a href="/UserGroup/Index" class="nav" id="nav_usergroup">找牛棚</a>
                <a href="/Anecdote/Index" class="nav" id="nav_anecdote">牛人轶事</a>
                <a href="/Business/Index" class="nav" id="nav_business">商家</a>
                <a href="/Shop/Index" class="nav" id="nav_shop">积分商城</a>
                <a href="/Bbs/Index" class="item_selected" id="nav_bbs">论坛</a>
                <a href="/News/Index" class="nav" id="nav_news">新闻</a>
            </div>
            <div class="nav-right">
                @if (!User.Identity.IsAuthenticated || Session["usertype"] == null)
                {
                    <a href="/Login" class="item-info">登陆</a>
                    <span>|</span>
                    <a href="/Register" class="item-info">注册</a>
                }
                else
                {
                    <input type="hidden" id="hdusername" value="@ViewBag.CurrentUser.CurrentName" />
                    if (ViewBag.CurrentUser.UserType == UserType.User)
                    {
                        <a class="nav-item"><span id="browsespan">我的浏览记录</span></a>
                        <a class="nav-item" href="@ViewBag.CurrentUser.Show" target="_self">
                            <span class="user_name_show">@ViewBag.CurrentUser.CurrentName</span>
                        </a>
                        <a class="nav-item last" href="/User/Logout?sid=@ViewBag.SID" target="_self">注销</a>
                        <div id="browseshow">
                            <a><div id="clearbr">清除浏览记录</div></a>
                            @foreach (var br in ViewBag.browserecords as IEnumerable<BrowseRecord>)
                    {
                                <a href="@br.URL">
                                    <div class="brshow">
                                        <span class="browseshow-left">@br.Title</span>
                                        <span class="browseshow-right">@br.Time</span>
                                    </div>
                                </a>
                            }
                        </div>
                    }
                    else
                    {
                        <a class="nav-item" href="@ViewBag.CurrentUser.Show" target="_self"><span class=" user_name_show">@ViewBag.CurrentUser.CurrentName</span></a>
                        <a class="nav-item last" href="/User/Logout?sid=@ViewBag.SID" target="_self">注销</a>
                    }
                }
                <a class="nav-item" href="/"><span><i class="icon-feed icon-home"></i>返回首页</span></a>
                <a class="nav-item"><span id="collect-me"><i class="icon-feed icon-collect"></i>加入收藏</span></a>
                <a class="nav-item" href="/Shared/Contact"><span><i class="icon-feed icon-contact"></i>联系我们</span></a>
                <script>
                    $("#collect-me").click(function () {
                        var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd' : 'CTRL';
                        if (document.all) {
                            window.external.addFavorite('http://www.51newren.com/', '牛人网');
                        } else if (window.sidebar) {
                            window.sidebar.addPanel('牛人网', 'http://www.51newren.com/', "");
                        } else {
                            alert('您可以尝试通过快捷键' + ctrl + ' + D 加入到收藏夹~');
                        }
                        return false;
                    });
                </script>
            </div>
        </div>
        <div class="bbs-clr"></div>
    </div>
    @RenderBody()
<div class="footer-container top30">
    <div class="footer top-line top30">
        <p>
            <span><a href="/">首页</a> </span>|
            <span><a href="/About.html">关于我们</a> </span>|
            <span><a href="/Join.html">加入我们</a> </span>|
            <span><a href="/Contact.html">联系我们</a> </span>|
            <span><a href="/Serviceterm.html">服务条款</a> </span>|
            <span><a href="/Bbs/Index" class="on">论坛</a></span>
        </p>
    </div>
    <div class="wrapper">
        <div class="copyright">
            <p class="small">
                Copyright © 2015 湖北牛人网络工程有限公司 All rights reserved. 鄂ICP备15014961号-1&nbsp;&nbsp;
                <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cspan id='cnzz_stat_icon_1256053577'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/stat.php%3Fid%3D1256053577%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
            </p>
        </div>
    </div>
</div>
    <script src="~/Scripts/newren.bbs.js"></script>